const axios = require('axios');

const baseURL = "https://ocr-api.up366.cn";

const service = axios.create({
  baseURL,
  timeout: 50000,
})

const request = ({ url, method = 'POST', data = {}, params = {}, headers = {}}) => service({
  url,
  method,
  data,
  params,
  headers
})

module.exports = request;
